﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
	
namespace BEGDC.PreContract.BLL
{
	public partial interface IUserRole
    {
        DataTable GetRoleListByEmployeeId(int employeeId);

        DataSet GetPermissionByEmployeeId(int employeeId);

        bool CheckPermission(int employeeId, string permission);

        //Joan.lu 2008-09-19
        //Check if the user is Admin
        bool IsAdmin(long employeeID);
        //Check if the user is Admin
        bool IsRoleAdmin(long employeeID);

        ////Edwin.fan 2008-10-8
        ////Get UserRole by CILAccount
        //DataTable GetUserRoleByEmployeeId(int employeeId);

        bool IsUniqueAdmin(int employeeId);

        bool DeleteUserRoleByEmployeeId(int employeeId);
    }

}



